package cn.edu.zhku.swagger.notes;

public interface TaskApiNotes {

    String addTask = "必须有标题title，过期时间expireTime，地区area和备注/描述remark非必须\n" +
            "{\n" +
            "  \"title\": \"张老师_任务2\",\n" +
            "  \"area\": \"仲园2\",\n" +
            "  \"expireTime\": \"2021-09-25 02:37:27\",\n" +
            "  \"remark\": \"任务2测试\"\n" +
            "}";

    String getGroupDistAble = "该接口为任务分发前调用，先获取可以分发的群组，必须提供taskId，支持对groupName的模糊查询\n" +
            "{\n" +
            "  \"taskId\": 3,\n" +
            "  \"groupName\": \"\",\n" +
            "  \"pageNum\": 0,\n" +
            "  \"pageSize\": 5,\n" +
            "}";

    String distTaskBatch = "必须提供taskId和groupIds\n" +
            "{\n" +
            "  \"taskId\": 3,\n" +
            "  \"groupIds\": [\n" +
            "    1, 2\n" +
            "  ]\n" +
            "}";

    String editTask = "必须有taskId，可提供对title，area，expireTime和remark的修改，title和expireTime不为''或空\n" +
            "{\n" +
            "  \"taskId\" : 4,\n" +
            "  \"title\" : \"\",\n" +
            "  \"area\" : \"\",\n" +
            "  \"expireTime\" : \"2021-09-22 00:00:00\",\n" +
            "  \"remark\" : \"\"\n" +
            "}";

    String removeTaskBatch = "必须有taskIds\n" +
            "{\n" +
            "  \"taskIds\": [\n" +
            "    1\n" +
            "  ]\n" +
            "}";

    String removeTask = "必须有taskId\n" +
            "{\n" +
            "  \"taskId\": 2\n" +
            "}";

    String removeGroupBatch = "必须有taskId和groupIds\n" +
            "{\n" +
            "  \"taskId\": 1,\n" +
            "  \"groupIds\": [\n" +
            "    1\n" +
            "  ]\n" +
            "}";

    String removeGroup = "必须有taskId和groupId\n" +
            "{\n" +
            "  \"taskId\": 1,\n" +
            "  \"groupId\": 2\n" +
            "}";

    String tea = "提供对title和area的模糊查询，提供对[createTime，expireTime]的区间筛选\n" +
            "{\n" +
            "  \"title\": \"string\",\n" +
            "  \"area\": \"string\",\n" +
            "  \"createTime\": \"2021-09-16 02:37:27\",\n" +
            "  \"expireTime\": \"2021-09-16 02:37:27\",\n" +
            "  \"pageNum\": 0,\n" +
            "  \"pageSize\": 5,\n" +
            "}";

    String taskGroupTea = "必须有taskId，提供对groupName的模糊查询\n" +
            "{\n" +
            "    \"taskId\" : 1,\n" +
            "    \"groupName\" : \"string\",\n" +
            "  \"pageNum\": 0,\n" +
            "  \"pageSize\": 5,\n" +
            "}";
}
